﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.UI;
using YArchitech.Revit;

namespace YArchitech.Plumbing
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	public class SettingShortcutsCommand : HYExternalCommand
	{
		public override void FilterProcess()
		{
            base.FilterViewType.Remove((Autodesk.Revit.DB.ViewType)1);
            base.FilterViewType.Remove((Autodesk.Revit.DB.ViewType)2);
			base.FilterProcess();
		}

		public override Result HYExecute(ref string TranName)
		{
			TranName = "设置快捷键";
			new FormShortcutsSetting().ShowDialog();
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
